package com.itfreer.gis.data.fileanalyze;

import org.opengis.feature.simple.SimpleFeature;

import java.util.ArrayList;
import java.util.List;

public class AnalyseUtil {
	public static List<String> getGemetry(List<SimpleFeature> featureList) {

		List<String> geometryList = new ArrayList<String>();
		if (featureList == null || featureList.size() < 1) {
			return null;
		}

		for (SimpleFeature feature : featureList) {
			geometryList.add(feature.getDefaultGeometry().toString());
		}
		return geometryList;
	}
}
